import { request } from '@/utils/request';

export function getList() {
  return request({
    url: '/queue/cust-mgr/get-supplier-list-applet',
    method: 'GET'
  });
}
export function getDetails(id) {
  return request({
    url: `/queue/cust-mgr/find-id-applet/${id}`,
    headers: {
      isToken: false
    },
    method: 'GET'
  });
}
export function reportSupplier(id) {
  return request({
    url: `/queue/cust-mgr/report-energy/${id}`,
    // headers: {
    //   isToken: false
    // },
    method: 'POST'
  });
}

export function createOne(data) {
  return request({
    url: '/queue/cust-mgr/add-applet',
    headers: {
      isToken: false
    },
    method: 'POST',
    data: data
  });
}
export function updateOne(data) {
  return request({
    url: '/queue/cust-mgr/update-applet',
    headers: {
      isToken: false
    },
    method: 'POST',
    data: data
  });
}
// 获取ERP供应商列表
export function getErpSupplierList() {
  return request({
    url: '/queue/cust-mgr/get-erp-supplier-list',
    method: 'GET'
  });
}
